package api_day01;

import java.util.Calendar;
import java.util.Date;

public class CalendarDemo {
    public static void main(String[] args) {
        Calendar rightNow = Calendar.getInstance();
        rightNow.add(Calendar.DATE,48);
        rightNow.add(Calendar.WEEK_OF_MONTH,-1);
        rightNow.set(Calendar.DAY_OF_WEEK,5);
        //rightNow.add(Calendar.DAY_OF_WEEK,-1); ??
        Date discountDay = rightNow.getTime();
        System.out.println(discountDay);
    }
}
